import { createRouter, createWebHistory } from 'vue-router'
import { routes } from 'vue-router/auto-routes';
//20241211 NO1页面导入
import NO1View from '@/views/20241211/NO1.vue'
//20241211 NO2页面导入
import NO2View from '@/views/20241211/No2.vue'
//20241211 NO3页面导入
import NO3View from '@/views/20241211/NO3.vue'
//20241212 NO4页面导入
import NO4View from '@/views/20241212/NO4.vue'
//20241212 NO5页面导入
import NO5View from '@/views/20241212/NO5.vue'
//20241212 NO6.jsx页面导入
import NO6View from '@/views/20241212/NO6.jsx'
//20241212 NO7页面导入
import NO7View from '@/views/20241212/NO7.vue'
//20241212 NO8页面导入
import NO8View from '@/views/20241212/NO8.vue'
import NO9 from '@/views/20241213/NO9.vue';
import NO10 from '@/views/20241213/NO10.vue';
import NO11 from '@/views/20241213/NO11.vue';
import NO12 from '@/views/20250103/路由传递.vue';
import NO13 from '@/views/20250103/路由传递z.vue';
import UserList from '@/views/20250103/1.vue';
import UserDetail from '@/views/20250103/2.vue';
import StuDemo65 from '@/views/20250103/StuDemo65.vue';


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',//20241211 NO1页面路由
      name: 'day1211StuDemo1',
      component: NO1View,//20241211 NO1页面组件
    },
    {
      path: '/NO2View',//20241211 NO2页面路由
      name: 'No2',
      component: NO2View,//20241211 NO2页面组件
    },
    {
      path: '/NO3View',//20241211 NO3页面路由
      name: 'NO3',
      component: NO3View,//20241211 NO3页面组件
    },
    {
      path:'/NO4View',//20241212 NO4页面路由
      name:'NO4',
      component:NO4View,//20241212 NO4页面组件
    },
    {
      path:'/NO5View',//20241212 NO5页面路由
      name:'NO5',
      component:NO5View,//20241212 NO5页面组件
    }
    ,
    {
      path:'/NO6View',//20241212 NO6页面路由
      name:'NO6',
      component:NO6View,//20241212 NO6页面组件
    },
    {
      path:'/NO7View',//20241212 NO7页面路由
      name:'NO7',
      component:NO7View,//20241212 NO7页面组件
    },
    {
      path:'/NO8View',//20241212 NO8页面路由
      name:'NO8', 
      component:NO8View,//20241212 NO8页面组件
    },
    {
      path:'/NO9',//20241213 NO9页面路由
      name:'NO9',
      component:NO9,//20241213 NO9页面组件
    },
    {
      path:'/NO10',//20241213 NO10页面路由
      name:'NO10',
      component:NO10,//20241213 NO10页面组件
    },
    {
      path:'/NO11',//20241213 NO11页面路由
      name:'NO11',
      component:NO11,//20241213 NO11页面组件
    }
    ,
    {
      path:'/路由传递',
      name:'路由传递',
      component:NO12,//20250103 NO12页面组件
      children: [
        {
          path: '路由传递z',
          name: '路由传递z',
          component: NO13, //20250103 NO13页面组件
        }
      ]
    }
    ,
    {
      path: '/users',
      name: 'UserList',
      component: UserList,
    },
    {
      path: '/users/:id', // 定义路由参数 :id
      name: 'UserDetail',
      component: UserDetail,
    }
    ,
    {
      path: '/Student65',
      name: 'Student65',
      component: StuDemo65,
    }
  ],
})


// const router = createRouter({
//   history: createWebHistory(),
//   routes: routes, // 使用自动生成的路由
// });

export default router
